package service.system;

import java.util.List;

import exception.Exceptions;

import model.security.UsrAuth;
import model.security.UsrRes;
import model.security.UsrRole;
import model.security.UsrUser;

public interface SystemListService {
	//-------------user-------------
		public abstract List<?> get_userlist();
	 	public abstract UsrUser get_user(long userid);
	 	public abstract Long getidByname(String name);
	 	public abstract void updateUser(UsrUser user,long roleid) throws Exceptions;
	 	public abstract void delete_user(long userid);

	 	public abstract List<?> get_allrole();
	 	public abstract List<?> get_this_roleid(long userid) throws Exceptions;
	 	
	 	//------------------role----------------
	 	public abstract List<?> get_rolelist();
	 	public abstract UsrRole get_role(int roleid);
	 	public abstract void updateRole(UsrRole role);
	 	public abstract void delete_role(long roleid);

	 	public abstract void updateRoleAuthByAdd(int roleid,String[] add);
	 	public abstract void updateRoleAuthByDel(int roleid,String[] del);
	 	
	 	public abstract List get_role_in_auth(int id,boolean isExist);
	 	public abstract List get_role_in_auth();
	 	
	 	public abstract List<String> get_all_role_name();
	 	public List get_this_authid(int roleid);	 	
	 	//-----------------res--------------------
	 	public abstract List<?> get_reslist();
	 	public UsrRes get_res(int resid);
	 	public abstract void updateRes(UsrRes res);
	 	public abstract void delete_res(long resid);
	 	
	 	//---------------------auth----------------------
	 	public abstract List<?> get_authlist();
	 	public UsrAuth get_auth(int authid);
	 	public abstract void updateAuth(UsrAuth auth);
	 	public abstract void delete_auth(long authid);
	 	
	 	public abstract List<String> get_all_auth_name();
		public abstract void updateUser(UsrUser user, String[] splitArrayHtml);

}
